package com.maistars.spider.repository.security.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class PermissionPO implements Serializable {
  
    private static final long serialVersionUID = -8025597823572680802L;  
  
    private Integer permissionId;  
    private String permissionName;
    private String permissionDesc;
  
    public PermissionPO() {
        super();  
    }  
  
    @Override
    public int hashCode() {  
        final int prime = 31;  
        int result = 1;  
        result = prime * result + ((permissionId == null) ? 0 : permissionId.hashCode());  
        return result;  
    }  
  
    @Override  
    public boolean equals(Object obj) {  
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        PermissionPO other = (PermissionPO) obj;
        if (permissionId == null) {
            if (other.permissionId != null) {
                return false;
            }
        } else if (!permissionId.equals(other.permissionId)) {
            return false;
        }
        return true;  
    }
}
